//
//  FrameModel.swift
//  swiftTableView
//
//  Created by 梁佳佳 on 2016/10/20.
//  Copyright © 2016年 梁佳佳. All rights reserved.
//

import UIKit

class FrameModel: NSObject {
    var isOpen:Bool = false
    var closeFrame:CGFloat!
    var array:NSMutableArray!
    var tableModel:TableModel!
    
    init(array:NSArray) {
        self.closeFrame = 0.001
        self.array = NSMutableArray.init()
        if array.count > 0 {
            for i in 0..<array.count {
                    let dic:NSDictionary = array[i] as! NSDictionary
                    self.tableModel = TableModel.init(dic: dic)
                    self.array.add(self.tableModel)
            }
        }
    }
}
